<%@page import="com.hnas.sys.service.system.dto.DTOUser"%>
<%@page import="com.hnas.sys.core.util.UserUtils"%>
<%@page import="java.util.Calendar"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<title>桂林国旅</title>
		<!--[if IE 6]>
		<script src="script/iepng.js" type="text/javascript"></script>
		<![endif]-->
		<link href="${pageContext.request.contextPath }/static/common/style/basic.css" rel="stylesheet" type="text/css" />
		<link href="${pageContext.request.contextPath }/static/common/style/index.css" rel="stylesheet" type="text/css" />
		<link href="${pageContext.request.contextPath }/js/jqueryui/css/cupertino/jquery-ui.css" rel="stylesheet">
		<link href="${pageContext.request.contextPath }/static/css/bootstrap-datepicker.css" rel="stylesheet">
		 <link href="${pageContext.request.contextPath  }/static/common/style/dialog.css" rel="stylesheet" type="text/css"  />
		<style>
		.editFm tr{
	      height:35px;
	    }
	    .editFm input[type="text"]{
	      border: #dcdbdb 1px solid;
	      height: 26px;
	      width: 200px;
	      border-radius: 3px;
	      font-family: Microsoft YaHei; 
	    }
		</style>
		
		<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery-1.10.2.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/util.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/basic.js"></script>


	<script src="${pageContext.request.contextPath }/js/jqueryui/js/jquery-ui.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/ajaxfileupload.js"></script>
	<script src="${pageContext.request.contextPath }/js/jquery.corner.js"></script>
	 <script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery.ui.datepicker-zh-CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/static/common/script/jquery.dialog.js"></script>
     <script type="text/javascript" src="${pageContext.request.contextPath }/static/common/script/jquery.nav.js"></script>
	<decorator:head/>
	</head>
<body>
	<%
		DTOUser user = null;
		String name = "";
		try{
			user = UserUtils.getCurrentUser();
			 if(user!=null) {
			 	name = user.getName();
			 }
		}catch(Exception ex){
				
		}
	%>

	<div class="topBar">
		<div class="w_1200a tr">
			<ul class="topList">
				<%if (name!=""){%>
					<li><a href="#">您好，<%=name %></a></li>
					<li><a href="${pageContext.request.contextPath }/logout">退出</a></li>
					<%}else{%>
					<li><a href="${pageContext.request.contextPath }/login.jsp">请登录</a></li>
					<%}%>
				<li><a href="${pageContext.request.contextPath }/contact">联系我们</a></li>
				
			</ul>
		</div>
	</div>
	<!-- 标记(logo)区域 -->
	<div class="branding">
		<div class="w_1200a">
			<div class="logo fl"></div>
			<div class="shopping m_t_38 fr">
			<a  href="${pageContext.request.contextPath }/frontend/cart/searchCart">
				<div class="cw-icon">
					<i class="ci-left"></i> <i class="ci-right"></i> 
					<i class="ci-count">0件</i>
						购物车
				</div>
				</a>
					<div class="phone">
						客服热线 89853245
					</div>
			</div>
			<div class="search-2015 m_t_38">
				<div class="form">
					<form method="post" action="${pageContext.request.contextPath }/frontend/product/searchProducts" name="searchHeadForm"  >
						<input type="text" accesskey="s" class="text" placeholder="请输入搜索关键词" id="searchKey" name="searchKey">
						<button onclick="doSubmitHead();" class="button cw-icon"><i></i>搜索</button>
					</form>
				</div>
			</div>
		</div>
	</div>
	<!-- end 标记(logo)区域 -->
	<!-- 主导航 -->
	<div class="nav">
		<div class="w_1200a">
			<ul class="navList">
				<li><a href="${pageContext.request.contextPath }/index">首页</a></li>
			<li><a href="${pageContext.request.contextPath }/frontend/product/searchProducts">产品</a></li>
				<li><a href="${pageContext.request.contextPath }/corpinfo">关于我们</a></li>
				
			</ul>
		</div>
	</div>
	<!-- end 主导航 -->


	<!-- 二级页面banner -->
		<div class="bannerPage02 banPag01 m_b_25">
			<div class="w_1200a">
				<div class="titPic fl m_r_15"><img src="${pageContext.request.contextPath }/static/common/images/tit_conf.png" /></div>
				<div class="stepBar fl m_t_40">
					<div class="step st01">
						<div class="addr <c:if test="${on1}">on</c:if>">
							<em class="num">01</em>
							<i class="ico ico_step01"></i>
						</div>
						<div class="txt">
							<span class="cn">我的购物车</span>
							<span class="en">MY SHOPPING CAR</span>
						</div>
					</div>
					<div class="step st02">
						<div class="addr <c:if test="${on2}">on</c:if>">
							<em class="num">02</em>
							<i class="ico ico_step02"></i>
						</div>
						<div class="txt">
							<span class="cn">订单填写</span>
							<span class="en">CONFIRMATION OF ORDER</span>
						</div>
					</div>
					<div class="step st03">
						<div class="addr <c:if test="${on3}">on</c:if>">
							<em class="num">03</em>
							<i class="ico ico_step03"></i>
						</div>
						<div class="txt">
							<span class="cn">成功提交订单</span>
							<span class="en">SUCCESSFUL SUBMISSION</span>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- end 二级页面banner -->
	
	
	

	<div class="container">
		<div class="grid_c2_s4c20 cf">
			<div class="col_main">
			     <div class="main_wrap cf">
				 <!-- 右侧 -->
					<decorator:body />
				</div>
			</div>
			<!-- end 右侧 -->
			<div class="col_sub">
				<!-- 左侧 -->
				<div class="menuL">
					<%@include file="/WEB-INF/page/common/inc_menu.jsp" %>	
				</div>
		    </div>
		    <!-- end 左侧 -->
				
		</div>
	</div>
	<!-- 站点信息 -->
	<div class="footBar">
		<div class="w_1200a cf">
			<div class="logo_foot"></div>
			<div class="copy">琼ICP备21321321号 Copy<em>&copy;</em>2015  trip.airguilin.com All Right Reserved</div>
		</div>
	</div>
	<!-- end 站点信息 -->
	
		<script>
		(function() {
		 $.ajax({
                 url: '${pageContext.request.contextPath}/frontend/cart/getcount', // 每个页签自定义属性，获取ajax请求url
                 method: 'post',
				async: false,
                 data:  {"userID":0},
                 dataType: 'json',
                 success: function(data) {
                         $(".ci-count").text(data+"件");
                 }
             });
			var menu = function() {
				var pDom = $('.menuL_list');
				var lis = pDom.find('li');
				pDom.find('.levelF').attr({
					'href': 'javascript:void(0)'
				}).on('click', function() {
					var _this = $(this).parent();
					if (_this.hasClass('on')) {
						_this.removeClass('on');
					} else {
						lis.removeClass('on');
						_this.addClass('on');
					}
				});
			};
			menu();
			function doSubmitHead(){
		         var f = document.searchHeadForm;
		         f.submit();
	       };
	       //绑定时间控件
	$('.input_date02').each(function() {  
     $(this).attr("id", ++$.datepicker.uuid).removeClass("hasDatepicker").datepicker({  
         dateFormat:'yy-mm-dd',
		  changeYear: true,
	      changeMonth: true,
	      yearRange: "1900:2049"
       });  
    });
//绑定时间控件
	$('.input_date').each(function() {  
     $(this).attr("id", ++$.datepicker.uuid).removeClass("hasDatepicker").datepicker({  
         dateFormat:'yy-mm-dd',
		  changeYear: true,
	      changeMonth: true,
	      yearRange: "1900:2049"
       });  
    });
    $('.input_date1').each(function() {  
     $(this).attr("id", ++$.datepicker.uuid).removeClass("hasDatepicker").datepicker({  
         dateFormat:'yy-mm-dd',
		  changeYear: true,
	      changeMonth: true,
	      yearRange: "1900:2049"
       });  
    });
		})();
		</script>
	
</body>
</html>